package com.spring.shops.service;

import com.spring.shops.model.dto.ProdDTO;
import com.spring.shops.model.dto.SaveProductDTO;
import com.spring.shops.model.result.IPageIndexImg;
import com.spring.shops.model.result.ServerResponseEntityVoid;
import com.spring.shops.model.vo.ProductVO;

import java.util.List;

public interface ProductService {
    /**
     * 产品分页查询
     * @param prodDTO
     * @return
     */
    ServerResponseEntityVoid<IPageIndexImg<ProductVO>> page(ProdDTO prodDTO);
    /**
     * 保存商品数据
     * @param dto
     * @return
     */
    boolean save(SaveProductDTO dto);
    /**
     * 根据ids批量删除数据
     * @param integers
     * @return
     */
    boolean deleteByProdIds(List<Long> integers);
    /**
     * 根据产品id获取信息
     * @param prodId
     * @return
     */
    ServerResponseEntityVoid<ProductVO> getInfoById(Integer prodId);
    /**
     * 更新数据
     * @param dto
     * @return
     */
    boolean updateInfo(SaveProductDTO dto);
}
